﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace shenghua.Migrations
{
    public partial class addentity42 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "ShoppingInfo_MaxPrice_MoneyType",
                table: "Commodities",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<double>(
                name: "ShoppingInfo_MaxPrice_Value",
                table: "Commodities",
                nullable: false,
                defaultValue: 0.0);

            migrationBuilder.AddColumn<int>(
                name: "ShoppingInfo_MinPrice_MoneyType",
                table: "Commodities",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<double>(
                name: "ShoppingInfo_MinPrice_Value",
                table: "Commodities",
                nullable: false,
                defaultValue: 0.0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ShoppingInfo_MaxPrice_MoneyType",
                table: "Commodities");

            migrationBuilder.DropColumn(
                name: "ShoppingInfo_MaxPrice_Value",
                table: "Commodities");

            migrationBuilder.DropColumn(
                name: "ShoppingInfo_MinPrice_MoneyType",
                table: "Commodities");

            migrationBuilder.DropColumn(
                name: "ShoppingInfo_MinPrice_Value",
                table: "Commodities");
        }
    }
}
